text: Avoid a crash
authorTimm Bäder <mail@baedert.org>
Fri, 16 Oct 2020 19:55:37 +0000 (21:55 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 22 Oct 2020 15:46:34 +0000 (17:46 +0200)
commit98e88b7b53f69092bc2c90a5eb32d2d18acad63f
tree96ea1e4b3bc1dc8e76307e8c5a53fac8e086c616
parent85702f8f5de3c3f88d8537ec84c9e7f423e68d8c
text: Avoid a crash

Calculate the "was previous focus in a child widget" condition before
chaining up into grab_focus, to a void that unreffing the prev_focus
widget.
gtk/gtktext.c